home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_3.lha
/
8_3
/
tstint.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
487b
|
30 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include <string.h>
include "8_3_int.c"
/ copy a stream of ints
include <error.h>
ain(int, char**)
for (;;)
{
long a;
if (!read_integer(cout, cin, &a))
break;
cout << a << "\n";
if (!cout)
break;
}
if (!cin.eof())
error("error reading input");
if (cout.bad())
error("error writing output");
return 0;